import { DataSet, TextArea } from 'choerodon-ui/pro';
import React, { useMemo } from 'react';
import inputDs from './inputDataSet';



const inputAutosizeTextarea: React.FC = (): React.ReactElement => {
  const inputDataSet = useMemo(() => new DataSet(inputDs()), []);
  return (
    <TextArea
      name="content"
      dataSet={inputDataSet}
      placeholder="适应文本高度"
      autoSize={{ minRows: 2, maxRows: 8 }}
    />
  );
};

export default inputAutosizeTextarea;




